package com.u2ds.console.web.util;

/**
 * Created by Ethan.Yuan on 2017/1/23.
 */
public class TypeUtil {
    public static final Integer STATUS_VALID = 1;
    public static final Integer STATUS_INVALID = 0;

    //钱流向平台是IN，流向用户是OUT
    public static final Integer DIRECTION_IN = 1;
    public static final Integer DIRECTION_OUT = -1;
    /************************支付类型************************/
    //现金支付
    public static final Integer PAY_CASH = 1;

    //非现金支付
    public static final Integer PAY_NOT_CASH = 0;
    /************************支付类型结束*********************/


    /************************操作来源*************************/
    //操作来源，前端
    public static final Integer SOURCE_FRONT = 1;

    //操作来源，后台管理端
    public static final Integer SOURCE_HOME = 0;
    /************************操作来源结束*********************/

    //订场，现金
    public static final Integer FLOW_ORDER_COURT_CASH = 10;
    //订场，会员卡
    public static final Integer FLOW_ORDER_COURT_MEMBER = 11;
    //退款，现金
    public static final Integer FLOW_REFUND_COURT_CASH = 12;
    //退款，会员卡
    public static final Integer FLOW_REFUND_COURT_MEMBER = 13;
    //购买卡
    public static final Integer FLOW_CREATE_CARD = 21;
    //充值卡
    public static final Integer FLOW_RECHARGE_CARD = 22;

    /************************订单操作类型*********************/
    //购买会员卡
    public static final Integer ORDER_MEMBER_CREATED = 1;

    //充值
    public static final Integer ORDER_MEMBER_RECHARGE = 2;

    /************************订单状态************************/
    //已创建
    public static final Integer ORDER_TYPE_CREATED = 1;

    //已支付
    public static final Integer ORDER_TYPE_PAID = 2;

    //已关闭
    public static final Integer ORDER_TYPE_CLOSED = 3;

    //已退款
    public static final Integer ORDER_TYPE_REFUND = 4;

    //未申请退订
    public static final Integer ORDER_REFUND_NONE = 0;
    //退订申请中
    public static final Integer ORDER_REFUND_APPLYING = 1;

    public static final Integer ORDER_REFUND_SUCCESS = 2;

    public static final Integer ORDER_REFUND_FAILED= 3;

    //订单，购物车状态
    public static final Integer ORDER_TYPE_UNSUBMIT = -99;

    /*************************缴费对象*************************/
    //订场
    public static final Integer PAY_BOOK_COURT = 4;
    //办卡
    public static final Integer PAY_BUY_CARD = 5;
    //充值
    public static final Integer PAY_RECHARGE_CARD = 6;

}
